package island_name;

public class island_name {
	public static void main(String[] args) {
		int [] index = new int[4];
		String [] islands = new String[4];
		islands[0]="Bermuda";
		islands[1]="Fiji";
		islands[2]="Azores";
		islands[3]="Cozumel";
		index[0]=1;
		index[1]=3;
		index[2]=0;
		index[3]=2;
		int ref;
		int y=0;
		while (y<islands.length) {
			ref=index[y];
			System.out.print("islands = ");
			System.out.println(islands[ref]);
			y=y+1;
		}

	}
}
